<!DOCTYPE html>
<html>
<head>
<script src="../../resources/dump-as-markup.js"></script>
<style>
    blockquote {
        color: blue;
        border-left: 2px solid blue;
        margin: 0px;
        padding: 0 0 0 20px;
    }
</style>
</head>
<body contenteditable>
<div>
<p>This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted.</p>
    <div>
        <blockquote type="cite">one<br>two<br>three<br id="endContent"><br><br></blockquote>
    </div>
    <br>
</div>
<script>

var sel = window.getSelection();
var endContent = document.getElementById("endContent");
sel.collapse(endContent.nextSibling, 0);
document.execCommand("InsertHTML", false, "<blockquote type='cite'><div>two</div></blockquote>");

Markup.description(document.getElementsByTagName('p')[0].innerText);
Markup.dump(document.getElementsByTagName('div')[1]);

</script>
</body>
</html>
